package com.cskaoyan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Tangyin
 * @description
 * @since 2022/05/07 14:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CategoryListBean {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<CategoryVO> list;

    public static CategoryListBean data(Integer total, Integer pages, Integer limit, Integer page, List list) {
        CategoryListBean categoryListBean = new CategoryListBean();
        categoryListBean.setTotal(total);
        categoryListBean.setPages(pages);
        categoryListBean.setPage(page);
        categoryListBean.setLimit(limit);
        categoryListBean.setList(list);
        return categoryListBean;
    }
}
